package com.gzj.environment.enums.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @description: 实体类是否删除的枚举。0正常，1删除
 * @author: tsing
 * @create: 2020-08-09 10:35
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum EntityDeleteEnum {
    NORMAL(0), DELETED(1);
    private Integer deleted;

    public static Integer normal() {
        return EntityDeleteEnum.NORMAL.deleted;
    }

    public static Integer deleted() {
        return EntityDeleteEnum.DELETED.deleted;
    }
}
